//
//  LZYTabBar.h
//  LZYTabbarController
//
//  Created by 刘宇 on 2018/5/3.
//  Copyright © 2018年 瀚宇悟道. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LZYTabBarConfig.h"
@class LZYTabBar;

@protocol LZYTabBarDelegate <NSObject>
- (void)tabBar:(LZYTabBar *)tabBar didSelectIndex:(NSInteger)selectIndex;
@end

@interface LZYTabBar : UITabBar
- (instancetype)initWithFrame:(CGRect)frame norImageArr:(NSArray *)norImageArr SelImageArr:(NSArray *)selImageArr TitleArr:(NSArray *)titleArray config:(LZYTabBarConfig *)tabBarConfig;

#pragma mark - 代理
@property (nonatomic, weak) id<LZYTabBarDelegate> lzyTabBarDelegate;

#pragma mark - selectIndex(默认为0)
@property (nonatomic, assign) NSInteger selectedIndex;

@end
